Add tests with NUL bytes

Add tests with NUL bytes in salt and plain-text, which were undefined
behaviors.