use an attr_accessor for @test_mode
Merge pull request #4 from jalada/e62bb9d8a8d575f3836623d7caf57a4f7f540328

Fix test_mode assignment bug