Test tweaks to detection script