test for invalid integer and <length> unit

<length> test uses em unit