upgrade to sbt project
add sum test and make it fail
fix the typemismatch of sum function