added test codes