Fixed work with new regkl. Added tests.