Slight constructor refactoring, using PHPUnit now too

Hi there, loved your library, such a lightweight gem. Just thought I'd use PHPUnit for tests instead, and thinned out the constructor method a little :wink: 

I was also going to maybe modify it slightly so you could pass it an array directly to the constructor. I'll try and get the tests to 100% too :smile: