Added tests for bracelets

Added tests for bracelets(free necklaces)

Fixes https://github.com/sympy/sympy/issues/6915