import readline tests

We start to support readline, yey!
Relevant commit 30cb287
Fix segfault in readline_clear_history

This makes readline hit 100%, yey!
Move test