Enable tests running on java7

closes #1