fix bug in tests and allow to be run from setup.py
git ignore test artifacts