disabled freeing arrays memory
includes edited
added tests