Added tests for reference factor determination