wpdb->insert adds too many rows

This works if add this code in functions.php?

if ( ! function_exists( 'test_setup' ) ) :

function test_setup() {

    $ar = array(
    'price_content' => 'hello'
    );

$result = $wpdb->insert('hs_prices', $ar); // insert 'hello' into 'price_content'

}

add_action( 'after_setup_theme', 'test_setup' );