Tested getPerimeter