NEXUS-5704: UT for the two changed spots.

Added unit tests to verify there is no more NPE
in the ResourceStoreRequest creation when
if-modified-since header is used.

Another spot tested is verifying that
file item does honor and behaves well as regarding
the handling of request carried if-modified-since
conditions.