move time tests to common, compat fixes