Move example code from readme into test project so it will stay more up to date as project changes. Fix sample to use appropriate analyzers.