Using beforeTest hook