Testing code fragments