added functionality to update lastModified field on resource update
added regression tests for lastModified
fixed test to compare the lastModified field with <= instead of <