junit tests for mqtt module