Add belongs_to association which changes the resource's path

Adding tests
fix path building