Corrected args ordering for tests to be: is(result, expected)