Added detection of invalid response from API.
Simplified KOSapi integration spec requests to run faster.