Fixed BasePersistentObject table create statement and finished unit test