Rewriting net (testing in nettest)