tests for removefirst