[Tests] Added empty string sizing test, single line sizing test

Also updated sizing to return zero for empty attributed strings