Add test for 'guard'