add database tests
fix server tests