added before and after example and test