More unit tests for common.