Finished unittests for script body

Change-Id: I67644f28b6335f6e7cb245150fd282fa11a525c0