Add a test which makes sure that errors during setup can be properly torn down. This found an assertion that was being triggered during lock shudown. Signed-off-by: Zach Brown <zab@versity.com>