added some test codes