fix tests
fix initial db data and uninit variable