testing spec mock fixes