before and before_each tests improved