test on inner and outer width and height