added tests for getUserAction, to make sure it works correctly both when the user exists and when they don't