Expanded test function to include pulse counter