Fix failing test under WP 5.1
Fix failing test under WP 5.1

WP 5.1 includes a bit more error message output. This pull request makes
our tests looser so they pass for both WP 5.1 and earlier versions.

wp-cli/wp-cli,wp-cli/wp-cli