build tests and fix some examples bit rot