Added php template and range tests