createProfile test helper function now takes user settings as an object