Add Tests

Adds tests. Increases test coverage from 30% to 70% :smile_cat: 
Can you point me to an example where we do that?