Added additional tests for malformed input