Backport tests for PLINK-396