added makefile for tests and new tests for model methods.