tests for size and addfirst operations