added phpunit bootstrap
added some tests
added request factory tests
Resolved some bugs
added more tests