added supporting methods for previously added test case