Fix stats tests

Dont rely on order of returend hash items.
In ruby 1.8.7 Order of returned hash stats items differs from 1.9.3.
While i have no idea why this happen, but it is ok to itrate whole
hash to check if test key exist.