unit tests on Models