tests: add pytest coverage