method to test with a given world.