testing complex case statement