Fix assertEquals parameters sometimes provided in wrong order