add integration test for most basic functionality, make xpath a little pickier, and inline some code in start