Moved segment definition existance test to own test case.