When you buy a new cog it's not uncommon to buy a new chain. I wouldn't worry about that. Definitely take it back and see what the deal is. You definitely didn't get a super nice wheel, but it should have lasted you more than 30 minutes of riding time.