Fleshed out registration handler
Added full state builder sample
Cleaned up tests