added tests to makefile
fix the partial intervals problem