Added tests for models. Initial tests.