added some phase 1 test codes