add a unit test for wesnoth.require