Test program cleanup

test.c was a dupe, json_test can now be built from Makefile
Support 'make testprogs'