new tests and snp functions