Add a simple test framework.
Fix makefile to enable tests.
Treat comment at a key pos correctly.