UK drone users to sit safety tests under new law