Moves testing stuff to core-test

Signed-off-by: Mathias Garbe <mail@mathias-garbe.de>