fix tests on device