Modified failing test so that it correctly test new edge cases

Assuming that regex modification in `common/djangoapps/util/request.py` was intentional, modified test so that it correctly treats new corner cases