Added some tests for try_lexical_convert and fixed some issues.