Revisit AnimationPlayer tests: cancel method tests and some refactoring