Made variable final
Add tests for FutureWithException