Fixing gitignore + tests

* modifying gitignore to not add temp files
* moving a test for library to it's own unittest