Adapted test to old PHP versions