add bitWidth() for generalized test cases