Fixed error in pybeacon_test.py