Test Case for Capture packets

Checks if the packets received are properly captured and the appropriate
exception is raised when packets received after stopping capture
Note: add custom exception