JUnit tests for the miscellaneous utilities.