Fixed LevelSource factory, added test.
Merge pull request #875 from code-dot-org/factory_fix

Fixed LevelSource factory, added test.