added helper methods for creating random ndb entities to help ease setting up test fixtures. fixed the create_test_file, by switching from StringIO to BytesIO (http://stackoverflow.com/questions/12028637/pythons-stringio-doesnt-do-well-with-with-statements).