Fixed handling of database disconnection in tests in green mode
Fixed Decimal range tests