factored out test function in user-helpers-spec.js
factored out test function in user-helpers-spec.js

katopz/nullchat,mattfeldman/nullchat,katopz/nullchat,praneybehl/nullchat,praneybehl/nullchat,coreyaus/nullchat,coreyaus/nullchat,mattfeldman/nullchat