update tests and examples to use Pre lib