Free before and after hook arrays after tests