added test codes for the various devices