Not really a solution, but a suggestion for finding out what is really going on here. Try using Data::Dumper to dump your test hash. It could be that the key does not end up being what you expect it to be.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."