fixed several js tests to use their assigned db name #869