Issue #238 - name test correctly, and $user may be null