Fix failing test and add test for Xblock external ui