bug fixes in regression test
bug fixes in regression test