There was only a test, I removed the check and I changed the test to pass a proper InvocationContext.