implemented and tested resource.languages property

Closes #59