bug fix before_each after_each execution order
add test for before_each after_each
add test for before_each after_each