wrote some tests for the utility functions.