tests are now passing. had to alter test file as it was using iOS specific linecap values.