fixed varchar type
added tests for varchar type