Move setup code into setup function for animation player and timing micro tests

Yet to confirm these tests still work on Android, sending this out for review first, won't merge until I've confirmed they run on Android properly.