fix requirements and tests
add pytest to requirements
make tests callable on their own