Created spec for thread repository