testing: compile before and after methods