Added relationships to idea model
Added unit test for idea model