Issue 829: initial commit

Created required test for organizations() method. Please review ths pull request.