conf for tests
add tests
fix config
add test
fix null pointer