added complex trsen methods
improved test