Fixed unit test related to OnEntry and arg passed by ref.