Removed use of deprecated methods from UserTest