add test and make first tutorial example work