model tests

Unit tests for models. Feature in progress