Fix issue where badly authenticated requests to user resources returned 500
Update user_test module to more fully test the user API