Merge "Add a test for prefilled memory slots" into main