unit tests for the case model