testing of removal on function constructor