Thanks for the response.
I just want to clarify, though, that I did touch the sand with my club. In fact, I accidentally moved quite a bit of it though I wasn't intentionally testing the ground. I get more information with my feet than I ever could with my club anyway, so I would never have any reason to test the ground in a bunker.
However, this brings up the next question. As a result of accidentally grounding my club and moving the ball, I changed the lie of my ball dramatically (for the worst), and I had no idea how to properly fix that. When I replaced my ball, I was forced to give myself a horrible lie whereas before I actually had a pretty decent lie. Did I do this correctly?