replaced missing methods in test files