Add tests for util module.