added test.py, test on multi layer n network, not finished