Fixed modified-since and unmodified-since behavior

Fixed failing tests.