Test refactor: cleaned up category specs to use sinon spies
Refactor test: removed fake testListener and replaced with sinon spies