added domain to razor api return and to teardown