Started writing if tests