added helper methods for testing