HORIZONTAL_STACK and VERTICAL_STACK: Add tests for fillAvailableSpaceRatio