Fixes for push and unshift and add testing.