fix(tests): mock check_output