Added test code for searching beacons