NEXUS-6177: Fix and UT to cover the change

request "asExpired" was not properly handled.
Also, added UT that verifies proper behavior. This
UT exercises only the core, as content plugin is
the one "converting" request params into Request
flags.