Added basic function ref test