rewrite tests to pytest and pytest_pyramid