add read password test code