code update
added tests for common.time