Makefile: switch from check back to test

mreiferson doesn't like the name "check" for these tests, and it turns out
that the Makefile generated by "phpize" also uses the target name "test"
instead of "check", so let's actually just go with "test" for this project.
test tweaks: separate failures from warnings, exit with error if any failures