refactor test examples