Adds BoardgameFactory Tests

Adds test for the methods in BoardgameFactory and fixes an issue with
converting a name's sort index from BGG's XML into an array.