added a method to simplify tests