add unit test framework

Add the first unit test to the package
include ability to retrieve the payload from the note