unit tests for invalid value types