Push onto Array

Add unit test for pushOntoArray function.