Fixed css selectors, and added tests

CSS selectors were broken - changed to directly translate
into xpath and compile, now working.

Added tests into test directory, tests basic functionality.