making the tests with mocktest