Add a test for malformed complex string