test with conditionals