updates to analytics and a 'test' in the notebook

- need to change this into a real test!