Forgot to expand the variable in the call to the TOBOOL function which would cause the result to always be true. In this case always resulted in the test code for these three modules to be included.