Implemented unittests for 400, 404 and 500