better tests
cleanup
fix isNewRecord & timestamps