refactor: extract test for spare