added answers get function
added test for arrays