More tests for illegal inputs
Added more tests; improved test readability a bit