adding test functions and fixing winch bug