the `ifdef` is more correct but means you have to do testing using beams from the `.eunit` directory. thats fine, just something to remember. fwiw, this is a pattern we use in several places -- but again I think wrapping it in the `ifdef` makes sense