v0.2.x: refactor test