Test function to calculate zoomlevels accurately