LDB:test-generic.sh - fix smaller/greater comparison tests