Variable name fixes in test

Fixes #1
Added method to parse registration webhook data