add test code for login