group tests
use ternary instead of if else