tests for belongs_to relation