Fix test to match every instead some of the forms
Fix `bfs-shortest-paths`

A recursive function call was missing and the result from `vertices`
should be cast to a stack-like data structure.