The study is public by default so should throw an error. The one above changes it to pending first.