Moved common operations from prac_area.js to commons to be able to resue
it for other tests as well.