Simplify tests settings and pytest