Added some tests for the ref package.