refactor and combine onandoff and MapboxTest