added more entity relationship methods and tests