more flexible animation unittest