Test capturing input