TST: testing some exceptions,  incorrect input, and maxiter