add mockito test
fix ext config