Added partial unit tests

Here are the tests written on testfest
Tip: when you have a PHP only file it is considered a best practice to omit the closing php tag because that php tag might introduce issues when there is whitespace following it; see http://php.net/manual/en/language.basic-syntax.instruction-separation.php for more information