better junit test for primitives