fixed test examples, fixed core