Feature/stricter reuse target

We now register a signature for the test environment, and use this when deciding if --reuse-target is safe or not.