Generate unicode error
Add self test capability