Improve reliability of casper test and check for false positives