Added unit tests for the model