Added scan Event test cases and initial test scan event generation
logic.