test for short circuit