Add unit tests for commands

This commit adds commands function.

Partially implements bp unit-tests

Change-Id: If5e037546965e338ebb9a171a178826b4e3136d6
Merge "Add unit tests for commands"