Python 2.4 compatibility for test_regex_object_hook
Skip regex tests on older MongoDB versions