test: fix inverted expected adn actual order

chai uses "actual, expected" order instead of "expected, actual" order.