Added tests to verify exceptions on invalid types.