Improved test removed useless code