Fixed Tests and refactored some parts of the interactionCore and the Data package