add test and population with arrays