Remove unexpected lines from expected