tests: SelfUpdate command test added
use sys_get_temp_dir for cache (fixes self-update command error)
Merge pull request #406 from apigen/self-update

Self update test added, cache dir to system temp