added test case for #251 inline text in top element