unit tests for Try & Either