Add test with Mock