Remove obsolete examples
Use named cmake arguments in examples
Use named cmake arguments for tests