test for namespaced associations + bug fixed