Set up and added karma tests