added test for nil to application helper