tests: transform test apps into unittests where it makes sense

This should fix issue #1131.

- [x] tests/bloom -> unittests/tests-bloom
- [ ] tests/test_bloom_bytes
- [ ] tests/test_net_if
- [ ] tests/test_posix_semaphore
- [ ] tests/test_sha256