Added test framework.

Should go into config.