Create tests/mctest.h with useful inline macroses

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Code refactoring in tests.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>