added tests for unions
some new tests for mbeddr.core