Add test for editing entities

Test for issue #138