fixed the mocke for scope