Added expansion test function.