100 doors, added test

moved the logic to create the values from main to its own function, so it is testable. Added a test.