Fixing spacing of if( statement and adding tests for deleting with id.