unit tested FDE logic.