Accepting Don's changes to the setup script, adding tests.

back-filling test for faction.get and get_faction.