Add Submit function with testing

I added a Submit function following your conventions as best I could. I also added a testing file.
Yeah that's a possibility, do you think these functions should act on the Subreddit type, or just take the subreddit name as a parameter?