completed tests for generating/appending HTML