add unit tests for Domain Entity Term and Properties Term