Added tests for unexpected/invalid input data