Some more unit tests for common code.