Testing with stream methods