added test cases for get definitions using mock