Improved tests. Tests now build a test program.