Added gflags and a test for it.