added test for status code