Unit tested dynamic sizing