Improved ULDB unit-test.

Simplified code in robustness test.
Added ability to invoke for valgrind(1) check.