Added a test for proper and improper reference completion.