[JBRULES-3416] added unit test to replicate working memory coruption