Fix tests for WP < 3.9