omac: fix accidentally reverted patch

introduced in 6816ac3f3fae776adb1372dbffd0441062006109
reverted in 8e7777b5545e46ab545bd51f7fcde7957134ade2
fix warnings in tests
only run tests when build was without warnings