Fixed ordering of assert statements