shape testing before creation.