better assert logic

the asserts aren't strictly necessary, but since the test is checking
that no exception is thrown, do something a little more logical