Add test with mock