add test.py for testing Reactor