Fix all beatrix tests with new entitlement api
Add more tests for DateHelper