Test written for Above end gap problem.