added some additional tests, and updated the advanced example