add reservoid_main to test program