test: Fix scan method to work against technology api in test-connman