[tests] make tests depend on extension being compiled