Tests

Hi. 
I added `Gemfile`, and `Rakefile` with task for run tests. Also i refactor test suite code.

Now, run test with

```
rake test
```