bluetooth: add test code