Ensuring quality for biodiesel and renewable diesel