fix argument order in test functions