test case getWidthAspectRatioForHeight method.