Add spec for loginController, tutorController and pw-check directive