Added test for search_allpages

Currently both the 2nd and the third assertions fail
(the first one is just for upcoming non-regression)
Merge remote-tracking branch 'origin/master' into addedUTests

Hurray, tests pass!
Merge pull request #160 from gturri/addedUTests

Added unit tests