Added getSegment test
Added tests for getSegment and added command to README