use py.test for tests in order for unittest to work properly