refactors cane test