bp: install example aggregation function
only run test for executable examples