testing without settimeout