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