Fixed unique so that it works, added tests. Bump version