Hotfix/fix nuts

Added unit tests to algorithm update.