Add test for watching files

Sanity test to make sure that watching files works correctly.