fix pome BNode generation. Tests for Pome pass.