added case model and test