test ref: http://qiita.com/items/19eea55e0398899e93bf