Progressing - hopefully.
Some notes. Trying to come up with elegant solution that avoids the test class..
Playing around. Trying to get the new object built properly so that o.B.constructor can see the ID.
Trying a different approach of modifying the constructor to shove in the ID.
Confirmed need to create function from text.
Working string to function..anonymous though, so failing constructor later on.
Figured out where issue is.. line 259.. new constructor not setup properly it looks like.
Playing around, some debug.