fix examples and test