Fixed test nesting; modified run function to configure the Beat instance only once.