[IMPROVEMENT] add JUnit Tests

96 tests about entities.