Added test code for Beefcake gem, adopted it for ruby-protocol-buffers
for consistency