Added unit tests for oneof blocks.