Modified animation constructor arguments order. Refactored test app code