Adding unit tests to animation controller