Added internal helper methods for test case