Task: spec: refactor tests.