improve test coverage around user profile access