Added an extra slow test
Added minor optimization for unique