Test case execution and logging