Added unit tests for fix to bug https://sbprojects.statsbiblioteket.dk/jira/browse/BTA-11