tests.cc tries to use the first command line argument, without checking whether it has actually been passed. This might cause a crash later due to a NULL pointer, and indeed also valgrind complains about that.
Attached a git commit fixing this issue.
Thanks a lot!