Added storage of metadata for tests.

* Tests that do rebuilding needs '.fix' state to work. Added handling of
  this in the test initialization and added a test cases that use this
  't/09-rebuilding-successful-build.t'