add tests, fix example, add build task