Fixed some corner condition bugs discovered while fleshing out unit test detail
Fleshed out unittests cases for key acceptance
Added more informative log messages for transactions