15 tests passing have a bug in valid segment