Moved private method in test