add pit and fib tests
remove useless defines
make appserver optional