added tests and travis
fixed test