Add unit tests

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