convert to assertion based test