Added test.php

Added test.php to show an example of how to use the class.