add composer support
fixed test for composer
Merge pull request #16 from dohzoh/master

add composer support