fixed scope errors my mochas "shared behaviour"