[rspec] socket handler tests, timer() hack, some ruby foo