A Stability Test for Configurations of Blocks