complete unit tests for the models