using view bounds and simple tests added
view bounds implemented and simple tests are added