Add CAYLStorage tests. Fix handling of constants only available in php 5.4+