Fixed constructor argument and generated result check.