Fix memory exhaustion error for tests

The last KDF test causes a large amount of memory to be used, sometimes resulting in a fatal error. This sets the memory limit properly.
Merge pull request #18 from Parent5446/master

Fix memory exhaustion error for tests