tests: simplify assertions