fixing tests for empty API responses