added regression tests