Refactoring, simple IOSpec test