Fix bugs related to order of applications

Flush all test examples; most of them are in correct syntax now.