Selector unit tests
Added pseudo-function selector parsing