change test syntax to use before block