updated to phpunit and factory-muff packages. created tests