Proper setting of the C-terminus in the unit test

Change-Id: I4a8cc14e168e3cfa89f3c958539feaf45a696358

Signed-off-by: John May <john.wilkinsonmay@gmail.com>
Added unit tests for some yet untested code, according to Jacoco

Change-Id: I21aa3be43d606b6fca4801b246cfe1e451c2e1e3

Signed-off-by: John May <john.wilkinsonmay@gmail.com>