added specs for generators; now handles namespaced classes