fix case api test
Merge pull request #1138 from kennknowles/domain-in-api

fix case api test