added better regression test