Add long test.

Add test that doesn't allow to cheat with placing \0 in the middle of
the string
drop buggy optimization
Merge pull request #5 from qnikst/master

Add long test.