Tests TypeDetector