Convert to dzil build and add tests