add pop method, fix test