Corrected bug in subt_pop and test functions.