prevent use of does() outside of hook and test leaf nodes