on entity load, set exists
improve compareObjects
add tests for loadWhere
remove pdocollectiontest