fixed failing tests by increasing the expected time
use two alternative methods of retrieving elements for a sub key