test ref: http://qiita.com/yuku_t/items/5e7b3316c6bfddf252a3