improved regression tests