Well, it would also clean up the code in the function.  But sure, do what you need to do!

set_password is in the securesync app, so I would probably put them in the tests for securesync.