#195 added tests for beacon and query