adds api subdomain and first integration test