use a jasmine spy for listeners tests