Added tests, travis and fixed signals