Added test for the core thing
Better tests, added rake task to run them