remove pathname dependency
move tests to spec folder
improved test harness
add mit license