Utility class and test