Creating spies with custom configuration