Add tests for malformed strings