added tests, finishing debugging
added tests, finishing debugging; unicode nonsense