fixed selftest and bug in success checnkin  fixed selftest and bug in
success checnkingg
only print cmd output on failure