Add test for entity in client code, see #30.