Fixed defect with layout animation and implemented unit tests for layout
animation.