fix style and broken ref test