test case getHeightAspectRatioForWidth method.