Fix bug in NsContext, test RDF generation step class