The federal government has introduced mandatory drug testing as a new requirement for employment into the public service.