update path ignore
improve code in spec test