sum degrees
add some basic tests