fix before & after tests