added integration testing for register,login,logout