test ref: http://qiita.com/sugarrina/items/db96288deddff5788e77