new tests and example fixes