readme tests moved to bottom
add toArray tests