added tests and travis support.
I forgot the badge.