Added more test cases for createReferences
Merge origin/master