Modified the groovy test to rectify incorrect expection so that the Groovy test can pass.