moved test code to a separate compilation unit
added .gitignore