re #9037 Empty input testing
re #9036 Edits to be able to survive wrong inputs
Re #9009 Migrate existing tests