added topology tests
incremental commit, added templated friend class as topology constructor
 for topology class