Updated .gitignore and added asserts to tests