some tests and examples