fix login tests. add some pending tests