Fixed class name; added tests for element appending