Tests that check that mock and pytest play nicely together