Properly order single single class selectors and add a test

Single class selectors are now weighted based on their distance from the target element since their specificity values are always the same relative to each other.