tests: Add DEBUG option

Add DEBUG option that provides more information about the test during
its execution.

Change-Id: I10b2680725a0f04071bd6d28ce2cef85fd47c429