added fixes and tests for getInlineContainer