Added test_apply.cu