Added tests for some utility methods.