Throw error if you define a spy outside of a runnable

[#66789174]
Throw error if you add a custom matcher or equality outside of a runnable

[#66789174]