Added #test_mode? method on request object
Added tests for #test_mode!, #production_mode! and #test_mode?