tests: make: only build sensor tests for boards providing this sensor

These tests fail for boards providing periph_i2c (and periph_gpio) but default pins are not defined correctly.