Added some routines to UserHelper.rb and made some simple tests.