Test case for #367

Tests that belongs to assigns the parent_class properly for a namespaced controller and a non-namespaced model