update relations() method docs and added simple unit tests