Add unit tests for handlers package