varref and junit test