tests status code for all methods