added spec for login test