fixed uri detection bug in css and scss
fixed machine card bug
improved machine card tests