Writing some tests for the utility functions.