fix - store.get() was failing when passed a raw entity

Also fixes a bug in the unit test that didn't catch this.