make tests runnable with py.test