Fix CreateTimer by adding Duration param and add tests