[Close #25] Added testing framework & fixed tests on Travis CI