mock out test cases