updated regression test and documentation