edited all the subprocess.check_output to match the right syntax :)

added test functions for some functions