moved api test to separate controller