tests: transformed tests/bloom into an unittest