update unit tests because of error in kmax
(#248)