Tests; requisite code fixes; added license acknowledgement in view.php