array prototype last elem work + test