Added some tests and initial framework.