fix issue with integrator and custom primary keys
fix issue with undefined adapters and reservedAttributes
check sort and null
fix tests