Add unit tests for abstract entity classes