added extra test for data on end