extracted methods in test