Fix visibility issues in Scribunto tests

This needs If6d2705 to be merged first.

Change-Id: I1f71d9d4b42518bdc2ab4bd35b39793c36438dd3