Refactored httpstatus test to use assertions instead