Utilised quickcheck, assert_cmd, predicates, and assert_fs for better tests of low-level functionality as well as cli-testing. Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>