WIP: Unit testing + debug logs in Handler.

*Got some passing unit tests for handler, wew

Change-Id: Ib01dace2f2079a6bf4de8128b97f36b8941fa302