move spec support methods to modules