Add check for empty response
Added a test for empty response check
Merge branch 'danez-patch-1'