Add unit tests for primitive and arrays of primitives
Add more tests