fielddb was undefined in test environment