Added tests for D#2647 and D#2648 and fix for D#2647
"can import added entity w/ perm key that was changed while in added state"
See https://github.com/Breeze/breeze.js/issues/49