add test and refactoring.

add test-kitchen and serverspec testting.
#3 might be fixed??