[patch 01/10] lib/test_bitmap.c: fix bitmap optimisation tests to report errors correctly