Fix bug in README (code example)
 - add test