Tests for primitive and final classes