A bill to legalize drug test strips was signed into law by Gov. Jim Justice Friday.