Adding segment tests.