Fix tests for readline on Linux platform.