changed default animation duration
minor refactor
added unit tests