reference triangle initialization returns errorcode on failure
update tests to check error code of reference triangle initialization
Merge pull request #16 from 31415us/master

fix for #15