Fixes generating incorrect test databasse