added tests, fixed a bug in call pringing