Add unit tests for static methods

Now I can sleep at night