upgrade JDK from 1.6 to 1.7
add tests case to improve coverage.
Merge pull request #20 from eller86/improve-coverage

Improve coverage