Added debugging to test TargetAndCast

Signed-off-by: MaloW <MaloW@spray.se>