fixing some errors on tests/examples