add test for ClientAwareTrait