tests using twisted framework