Write tests for for Lotus::Entity and Lotus::Repository duplication

Waiting for PR https://github.com/lotus/model/pull/122