Append now returns array instead of length
Added basic tests for new functions