Fix issue #57
add tests
update tests
Fix issue #57, additial complications with character and factor types are fixed
merge conflict solved
code formatting and update man files
Merge pull request #58 from SwedishPensionsAgency/issue-57

Fix issue #57