more tests, improved example