spec with mock