Changed $parse to use htmlString argument
Added test for $parse