add a test code, use test config