added test to ensure relationship assignment