enable debug build + other test cases

To do a debug build, do 

    make clean
    make debug