diff --git a/tests/gtest_preconditions.cpp b/tests/gtest_preconditions.cpp
index 26d55cba8..bce8a9486 100644
--- a/tests/gtest_preconditions.cpp
+++ b/tests/gtest_preconditions.cpp
@@ -298,3 +298,41 @@ TEST(Preconditions, Issue615_NoSkipWhenRunning_B)
tree.rootBlackboard()->set("check", false);
ASSERT_EQ( tree.tickOnce(), NodeStatus::RUNNING );
}
+
+
+
+TEST(Preconditions, Remapping)
+{
+ static constexpr auto xml_text = R"(
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )";
+
+ BehaviorTreeFactory factory;
+
+ std::array counters;
+ RegisterTestTick(factory, "Test", counters);
+
+ factory.registerBehaviorTreeFromText(xml_text);
+ auto tree = factory.createTree("Main");
+
+ auto status = tree.tickWhileRunning();
+
+ ASSERT_EQ(status, BT::NodeStatus::SUCCESS);
+ ASSERT_EQ( counters[0], 1 );
+ ASSERT_EQ( counters[1], 1 );
+}