Tests for prop()

Adds tests for the prop() function. NB this also exercises removeProp() as a by-product.