Add config test and readme doc