Unit tests refactoring

* duplicated tests were removed
* common tasks moved to utils

Change-Id: I69c91a264ec668b1333db8fd907298262af098cb
Merge "Unit tests refactoring"