Tests; pass app by reference
Adjust documentation