added runlater for disposing asynchronously
fix tests