fix detect unit test after broken after commit e09080acd818d8fc6c64b71c22c2d21fd25006d9