tests: increase compatibility of assertion methods.
release: `v0.5.1`.