testing spec with spy