More robust casper tests for permalinks