Add initial tests, is_valid returns boolean

I could be mistaken, but i didn't see any tests, which is a bummer since I'd like to add a few features of my own. 

Anyhow, I started adding a few tests. It uses rspec, but let me know if you'd like to use something else.