support os_version.

According to #2.  I'll send pull-request is divided into several times.
First pull-request as below. 

- Fix for os_version.
- Add several test case.

Please feel free to merge it.