Added More Tests To Repository Layer

Added Tests to check the Entity State on Add and Update methods before
commit.