first iteration of tests added, fixed phpdoc