refactored test of Label by Xaviuzz and JRHuerta