added a .do function to chain arbit fns and tests for it