functional javascript apply, call, forEach tests