Throw a TypeError exception for invalid targets

Update tests for 'normalizeTarget'