added test for before & after validator