Testing php classes