KAA-235: Add init/deinit sample functions to unit tests.