Fixed the TAxonomyGraph.asGraph implementation, added a test