added test for global config
added global config feature, close #5
version 1.0.3