tests with mockery