tests/libls.sh: Update testing method.

Avoid a line enumeration using `sed', which seemingly
caused a false negative in the build daemon of NixOS.
tests/libls.sh: Avoid a false negative outcome.

Take precaution during code coverage runs.