Use pytest
fix bugs of pygf.spec.BaseDict