Fixed issue in BeadCrumbs test to get value and made some refactoring for the test utils.