Added tests for the -g option