Fixing TEST_COMPLEX (closes bug #40070), implementing hash_code
fix time recording