Added unit test for common.h