added first tests based on karma