fixed some tests in examples