added failing test
BUG: correctly convert labelsize -> int

Do this by getting the size value back from the underlying text
object.
Merge pull request #2618 from tacaswell/fix_issue_1172

Fix issue 1172