Finalized test setup and debugging