add basic sanity test

For more indepth compatibility testing, use the make-compat.pl script to
generate a larger test set.