Unit testing of models