Clean up testing.

 - Remove testing code from cppopts.h.
 - Instantiate argument class in test.cpp.
 - Move testing code from Makefile to test.sh.
Add fail message.