added tests (and karma and travis)