add tests for type boundary values and fix char arrays