More accurate debug message in reference list classifier
Test for reference list classifier

Handles: [1], [2] etc.