Updated previous change to has_many_through() class name concatenation to take standard/namespace prefixes into consideration
Added tests