Fix test_search_with_size case

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>