test: simplify

assert_equal used instead of check. Because we can assume assertions
work well in this test.