Corrected the order of parameters for assertion

because it was resulting in confusing failed
test output. while at it, fixed a minor typo.