Added option for gx-config file and updated unit test