Fix tests (the order is database engine specific)