Add type hinting to Loader::view
Add load html tests