Fix tests in WP < 3.5