Add unit tests by rspec

I write some simple test code because mackerel-agent-ruby has no tests.