Fix unit tests
Fix empty grid with canNew=false allows new record

Fixes RM-2634