unit tests for common.util