SWC-1448: fix reference widget

and add test to detect if someone breaks in the future.