Ensure message contains keyword arguments when a function has been called even though it should not have been called.