Adding test for api without resource.