test apply()