Test with R16B02

This change adds R16B02 to the list of Erlang versions tested on Travis CI, and fixes a problem with the unit tests in that version.

Do we need to test on R15B and R15B01, apart from R15B02? I dropped them so we can get results from the build quicker, but I'm open to be persuaded that we should keep them.