Added beacon library
Added beacon test