add before function in test 1