change testacular to karma
add in setView and getView