refactored gene_tests