add: test for loderef, merged loderef h and cc