primitive unit tests