implemented entities repository testcase. closes #16