Add register and clear method for storage
Add unit test for HandmadeCookie
Fixed be-register has appropriate format