refine tests

@josevalim did you thought about something like this?

* introduce `readme_path` to the config
* fix the case of codeblock variations which doens't format correct in the
  frontend