added regression testing