Added (initially failing) test for apply()