removed unused function
made test consistent with current program