Fix bug in define updating test and add test for rpm executing requires.