added test code for signin process