use an attr_accessor for @test_mode