Test case for PR #367

Tests that `belongs_to` assigns the `parent_class` properly for a namespaced controller and a non-namespaced model.