Change rspec coding style
add test of stdout into spec