fix incorrect order of tests