With a test file guarded we can include this file on IDE project (MPLAB X in my case) and compile without excluding test files. Excluding test files on MPLAB X disable autocompletion and function navigation.