Added some tests for illegal inputs
Updated .gitignore