test fixed after db refactoration