tests: add bitarithm MSB/LSB test

```sh
make all flash test
```

~~Unpick 96d9b62acba864c8530526cdd4ee6be864f044d1 (Revert "core: faster bitarithm_msb") before merging!~~