fixed serialize function and tests

the serialize function was using a not exiting variable 'value' which should have been model and did not index objectIDs as strings. 

serialize test passes for date and objectId
updated all tests to to the newer should version.