Add unit tests for debug

This commit adds unit tests for common.debug.

Partially implements bp unit-tests

Change-Id: I3ab573942293eea72294d395ae40e92c2126708d
Merge "Add unit tests for debug"