using karma again
cleanup, better tests and better server