Updated asserts after 500 errors were fixed to be 400 ones