Added unittest

Converted informal test to unittest of RaetKey behavior