replaced examples by unit tests