units: record the result of test to RESULT.tmp

Signed-off-by: Masatake YAMATO <yamato@redhat.com>