Move various ui const tests to library
#76305
+42
−46
Merged
library
#76305