Add lz4 test for bsdcat.
 - add test utility function canLz4()
 - fix test_write_filter_lz4 to use canLz4()