added node_modules to .gitignore
some refactoring on tests