unit tests for the models