fixed testing error on ruby 2.1.5