added compile test and fixed its failure
Merge pull request #10 from nichtich/test

added compile test and fixed its failure