[BUGFIX] api subdomain was rooting to app#index + wrote tests