VS unit tests for Find all references

Fix #744.