Fixed detect test failure