added in method in test to remove redundancy